#include "apple.hh"

Apple::Apple(int x, int y)
{
	rect.w = 64;
	rect.h = 64;
	rect.x = x;
	rect.y = y;
}

void Apple::draw(SDL_Renderer* renderer, SDL_Texture* texture, Sprites* sprites)
{
	SDL_RenderCopy(renderer, texture, sprites->getSprite(14), &rect); 
}

void Apple::setXY(int x, int y)
{
	rect.x = x;
	rect.y = y;
}

int Apple::getX()
{
	return rect.x;
}

int Apple::getY()
{
	return rect.y;
}
